//@import '~normalize.css/normalize.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.pointer {
  cursor: pointer;
}

.bold {
  font-weight: bold;
}

ul li {
  list-style: none;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
}

.main {
  width: 600px;
  margin: 0 auto;

  input {
    width: 100%;
    height: 30px;
    line-height: 30px;
    border: 2px solid #000;
    padding-left: 8px;

    &:active,
    &:focus {
      border-radius: 0;
    }
  }

  button {
    height: 30px;
    width: 80px;
    text-align: center;
    border: 2px solid #000;
    cursor: pointer;
  }

  .header {
    height: 30px;
    background: orange;
    line-height: 30px;

    .user {
      height: 30px;
      width: 100%;
      border: 2px solid #000;
    }

    button {
      border-left: none;

      &:hover {
        background: red;
        border-left: none;
      }
    }
  }

  .login {
    width: 200px;

    p {
      display: flex;
      height: 30px;
      line-height: 30px;
      margin-bottom: 10px;

      input {
        width: 200px;
      }
    }

    p.success {
      color: #38bb38;
    }

    p.error {
      color: red;
    }

    .btns {
      display: flex;

      button {
        width: 100%;
        display: inline-block;
        margin: 0 10px;

        &:hover {
          background: #93c4ff;
        }
      }

    }
  }

  .footer {
    display: flex;
    margin-top: 20px;
    height: 60px;
    line-height: 60px;

    button {
      border-left: none;

      &:hover {
        background: #93c4ff;
      }
    }

  }
}

.chat-wrapper {
  width: 600px;
  height: 400px;
  display: flex;
  margin-top: 20px;

  .chat-list {
    width: 400px;
    height: 400px;
    border: 2px solid #000;
    overflow-y: auto;
    padding: 10px;

    li {
      height: auto;
      margin-bottom: 10px;
      display: flex;
      overflow: hidden;
      border: 1px solid #ccc;
      padding: 5px;

      .content {
        font-weight: normal;
      }
    }

    li.receive {
      padding-right: 10px;
      font-weight: bold;
    }

    li.send {
      padding-left: 10px;
      font-weight: bold;
      justify-content: flex-end;
    }

  }

  .user-list {
    width: 200px;
    height: 400px;
    overflow-y: auto;
    list-style: none;
    border: 2px solid #000;
    border-left: none;

    li {
      margin-bottom: 10px;
      padding: 6px;
    }

    li.active {
      background: #93c4ff;
    }
  }

}
